package com.jg.mapper;

import com.jg.dto.BookParam;
import com.jg.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 86130
 * @description 针对表【books】的数据库操作Mapper
 * @createDate 2025-06-16 14:42:37
 * @Entity com.jg.entity.Books
 */
@Mapper
public interface BookMapper {


    List<Book> getList(@Param("bookParam") BookParam bookParam);

    int add(@Param("book") Book book);

    int delete(Integer bookID);

    int update(Book book);

    Book getBookById(@Param("bookID") Integer bookID);
}
